#include "../iBe.h"

Interpolator::Interpolator():startTime(0), endTime(0), loop(true)
{}

Interpolator::~Interpolator()
{}

void Interpolator::setStartEndTime(const UINT64 &_start, const UINT64 &_end)
{
  if ( _end > _start )
    {
      startTime = _start;
      endTime   = _end;
      dt        = _end - _start;
    }
}

void Interpolator::setLoop(const bool &_loop)
{
  loop = _loop;
}

void Interpolator::update(const UINT64 &_time)
{
  internalUpdate(_time);
}
